package com.ultron.app.entity.test;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.alibaba.excel.annotation.write.style.ContentRowHeight;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;


/**
 * 标题：财务通道(Excel业务对象)
 * 说明：财务通道(Excel业务对象)，作为基础新增、修改操作的入参
 * 时间：2024-4-24
 * 作者：admin
 */
@Data
@ColumnWidth(25)
@HeadRowHeight(20)
@ContentRowHeight(18)
@Accessors(chain = false)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("财务通道(Excel业务对象)")
public class FinanceChannelExcelBO implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "序号")
    @ExcelProperty("序号")
    private Integer xh;
    @ExcelProperty("预算科目")
    private String yskm;
    @ExcelProperty("业务场景")
    private String ywcj;
    @ExcelProperty("适用业务场景")
    private String ywcjjs;
    @ExcelProperty("一级报账域")
    private String bzy;
    @ExcelProperty("二级报账单类型")
    private String bzdlx;
    @ExcelProperty("三级业务类型")
    private String ywlx;
    @ExcelProperty("四级费用类型")
    private String fylx;
    @ExcelProperty("报账附件")
    private String bzfj;

    @ExcelProperty("事由")
    private String sy;


    /**
     * 改造Excel模版
     * @return
     */
    public FinanceChannelExcelBO buildExportModule(){
        this.xh = 1;
        this.yskm = "预算科目";
        this.ywcj = "业务场景";
        this.ywcjjs = "业务场景解释";
        this.bzy = "报账域";
        this.bzdlx = "报账单类型";
        this.ywlx = "业务类型";
        this.fylx = "费用类型";
        this.bzfj = "报账附件";
        this.sy = "事由";
        return this;
    }

}